package cn.tedu.csmall.passport.service;

import cn.tedu.csmall.passport.pojo.param.AdminInsertParam;
import cn.tedu.csmall.passport.pojo.param.AdminLoginInfoParam;
import cn.tedu.csmall.passport.pojo.param.AdminUpdateInfoParam;
import cn.tedu.csmall.passport.pojo.vo.AdminListVO;
import cn.tedu.csmall.passport.pojo.vo.AdminStandardVO;
import cn.tedu.csmall.commons.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

@Transactional//事务只能作用于接口中定义的抽象方法
public interface AdminService {
    String login(AdminLoginInfoParam adminLoginInfoParam);
    void insert(AdminInsertParam adminInsertParam);
    void deleteById(Long id);
    void update(Long id,String password);
    void update(AdminUpdateInfoParam adminUpdateInfoParam);
    AdminStandardVO getStandardById(Long id);
    PageData<AdminListVO> list(Integer pageNum);
    PageData<AdminListVO> list(Integer pageNum,Integer pageSize);
}
